distributive property for matrices